#vars
Description: Get the attribute dictionary of an object (by calling the object's __dict__
method).
def vars():
'''
Get the attribute dictionary of the current object
:return: the attribute dictionary of the current object
'''
def vars(obj):
'''
Get the attribute dictionary of an object
:param obj: an object
:return: the attribute dictionary of obj
'''
Example:
with open(__file__) as fp:
print(vars(fp))